<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__STATIC__/layuimini/lib/layui-v2.6.3/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>

<body>


<form class="layui-form" style="width: 300px;">
    <div class="layui-form-item">
        <label class="layui-form-label">状态选择</label>
        <div class="layui-input-block">
            <select  lay-filter="Loadprovince" id="sss" class="ttt" name="modules" lay-verify="required" lay-search="">
                <option name="option"  value="http://cmf.yeeyeeyjy.top/lunwen/teacher_examine_title/all">全部</option>
                <option name="option"  value="http://cmf.yeeyeeyjy.top/lunwen/teacher_examine_title/noExamine">未审批</option>
                <option name="option"  value="http://cmf.yeeyeeyjy.top/lunwen/teacher_examine_title/alreadyExamine">已审批</option>
            </select>
        </div>
    </div>
</form>
<script src="__STATIC__/layui/dist/layui.js" charset="utf-8"></script>
<script src="__STATIC__/layui/dist/layui.all.js" charset="utf-8"></script>
<script>
    var select = document.getElementById('sss');
    var  options = document.getElementsByName("option")

    window.onload = function() {
        console.log(select);
        console.log(options[0].getAttribute("value"));
    };
    //Demo
    layui.use('form', function(){
        form=layui.form;
        form.on('select(Loadprovince)', function(data){
            var val=data.value;
            console.info(val);
            window.location.href =val;
            //注意，注意，注意，这里可以写你自己的原生的PHP\JavaScript\Ajax代码

            form.render('select');
        });
    });


</script>

</body>
</html>